Extract categorical data features

59

Extract categorical data features -

s = (df.dtypes == 'object')
object_cols = list(s[s].index)
print("Categorical variables:")
print(object_cols)

Comments

Submit
0 Comments